package common

import (
	"os"
)

type GlobalVal struct {
	Dbpwd string
	ClientID string
	ClientSecret string
	GitPassword string
	HookPwd string
	GitToken string
	AesKey string
	LoginKey string
	DbUser string
}

func InitGlobal() {
	var gVal GlobalVal
	gVal.Dbpwd = os.Getenv("DB_PWD")
	gVal.DbUser = os.Getenv("DB_USER")
	gVal.AesKey = os.Getenv("AES_KEY")
	gVal.ClientID = os.Getenv("GITEE_CLIENT_ID")
	gVal.ClientSecret = os.Getenv("GITEE_CLIENT_SECRET")
	gVal.GitPassword = os.Getenv("GITEE_PASSWORD")
	gVal.HookPwd = os.Getenv("HOOK_PWD")
	gVal.GitToken = os.Getenv("GITEE_TOKEN")
	//fmt.Println("env globalval: ", gVal)
}